package com.nchu.commondevelopmentframework.common.constant;

/**
 * @InterfaceName: ApiCodeConstant
 * @description: 返回ApiResult的Code取值常量
 * @author: Li Chuanwei
 * @date: 2024/01/18 13:34
 **/
public interface ApiCodeConstant {
    int API_SUCCESS = 20000;
    int API_WARN = 30000;
    int RESULT_NULLPOINT_EXCEPTION = 40001;
    int RESULT_METHODNOTSUPPORTED_EXCEPTION = 40002;
    int RESULT_MISSINGPATHVARIABLE_EXCEPTION = 40003;
    int RESULT_METHODARGUMENTTYPEMISMATCH_EXCEPTION = 40004;
    int RESULT_METHODARGUMENTNOTVALID_EXCEPTION = 40005;
    int RESULT_NULLSTORAGECONFIGURATION_EXCEPTION = 40006;
    int RESULT_FILENOTEXIST_EXCEPTION = 40007;
    int RESULT_OTHER_EXCEPTION = 40010;
    int NOT_LOGIN = 50001;
    int INSUFFICIENT_PERMISSIONS = 50002;
    int NOT_TOKEN = 50003;
    int LOGIN_FAILED = 50004;
    int ROLE_MENU_EXIST = 10001;
    int ROLE_MENU_ADD_FAILED = 10002;
    int ROLE_MENU_NOT_EXIST = 10003;
    int ROLE_MENU_DEL_FAILED = 10004;
}
